var numm=0
var over=false
var t=setInterval(function(){
    var nprogress=document.querySelector('.nprogress')
    if(numm>=95&& !over)return
    numm++

    if(nprogress){
        nprogress.style.width=numm+'%'
    }else{
        var nprogress=document.createElement('div')
        nprogress.className='nprogress'
        nprogress.style.position='fixed'
        nprogress.style.top=0
        nprogress.style.width=numm+'%'
        nprogress.style.height='5px'
        nprogress.style.background='#29d'
        document.body.appendChild(nprogress)
        var nprogressRadius=document.createElement('div')
        nprogressRadius.className='nprogressRadius'
        document.body.appendChild(nprogressRadius)
    }
    if(numm>=100){
        document.body.removeChild(nprogress)
        clearInterval(t)
        document.body.removeChild(document.querySelector('.nprogressRadius'))
    }
},10)
window.onload=function(){
    over=true
}